#ifndef _OLD_ERROR_EVENT_H
#define _OLD_ERROR_EVENT_H

#include "../../../Base/Event.h"
#include <string>

#define ERROR_EVENT_DEF_SIZE 16

using mp_base::Event;
using std::string;

namespace mp_error
{
	class ErrorEvent : public Event
	{
	public:
		ErrorEvent();
		virtual ~ErrorEvent();

		bool		IsTriggered();
		string		GetErrorMessage();
		const string	PeekLastErrorMessage();
		bool		AddErrorMessage(const string msg);
		bool		AddErrorMessage(const char* msg);

	private:
		string*			m_messages;
		int				m_messageBufferSize;
	};
}
#endif